package com.example.springboot.entity;

import jakarta.persistence.*;
import lombok.Data;

@Data
@Entity
@Table(name = "traffic_info")
public class TrafficInfo {
    @Id
    @Column(name = "destination_id")
    private Long id;

    @OneToOne
    @MapsId
    @JoinColumn(name = "destination_id")
    private Destination destination;

    @Column(columnDefinition = "TEXT")
    private String selfDriving;

    @Column(columnDefinition = "TEXT")
    private String publicTransport;

    @Column(columnDefinition = "TEXT")
    private String carInfo;

    @Column(columnDefinition = "TEXT")
    private String planeInfo;

    @Column(columnDefinition = "TEXT")
    private String busInfo;
}
